package com.message.tcp.ip.ui.member;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;

import com.message.tcp.ip.ui.member.dialog.AccountTable;

public class AccountPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTextField cardText;
	public AccountPanel(AccountTable accountTable){
		this.setLayout(new BorderLayout(0, 0));

		JPanel funtionPane = new JPanel();
		this.add(funtionPane, BorderLayout.NORTH);

		JLabel cardNumberLabel = new JLabel("Card Number");
		funtionPane.add(cardNumberLabel);

		cardText = new JTextField();
		funtionPane.add(cardText);
		cardText.setColumns(10);

		JButton cardSearchButton = new JButton("Search");
		funtionPane.add(cardSearchButton);

		JButton cardUpdateButton = new JButton("Update");
		funtionPane.add(cardUpdateButton);

		JButton cardDeleteButton = new JButton("New button");
		funtionPane.add(cardDeleteButton);

		
		JScrollPane accountScrollPane = new JScrollPane(accountTable);
		this.add(accountScrollPane, BorderLayout.CENTER);
	}
}
